//package com.mdl.springmvc.handler.dao;
//
//import com.mdl.springmvc.handler.entity.Department;
//import com.mdl.springmvc.handler.entity.Employee;
//import com.mdl.springmvc.handler.entity.ZhuLi;
//import org.springframework.beans.factory.annotation.Autowired;
//
//import java.util.Collection;
//import java.util.HashMap;
//import java.util.Map;
//
///**
// * @Desc
// * @Author madengling
// * @Time 2020/11/4 11:36
// */
public class ZhuliDao {
//    private static Map<Integer, ZhuLi> zhulis = null;
//
//    static {
//        zhulis = new HashMap<Integer, ZhuLi>();
//
//        zhulis.put(1,new ZhuLi(1001,"E-AA","aa@163.com",1,new Department(101,"D-AA")));
//        zhulis.put(2,new ZhuLi(1002,"E-BB","aa@163.com",1,new Department(102,"D-BB")));
//        zhulis.put(3,new ZhuLi(1003,"E-CC","aa@163.com",1,new Department(103,"D-CC")));
//        zhulis.put(4,new ZhuLi(1004,"E-DD","aa@163.com",1,new Department(104,"D-DD")));
//        zhulis.put(5,new ZhuLi(1005,"E-EE","aa@163.com",1,new Department(105,"D-EE")));
//    }
//
//    public Collection<Employee> getAll(){
//        return employees.values();
//    }
//
//    public Employee get(Integer id){
//        return employees.get(id);
//    }
//
//    public void save(Employee employee){
//        if(employee.getId() == null){
//            employee.setId(initId++);
//        }
//        employee.setDepartment(departmentDao.getDepartment(employee.getDepartment().getId()));
//        employees.put(employee.getId(),employee);
//    }
//
}
